package com.github.ecbp.store.service.api;

import com.github.ecbp.common.api.CommonResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.multipart.MultipartFile;

import static com.github.ecbp.common.constant.CacheKeyConstant.FEIGN_VERSION;

@Api(tags = "文件管理")
@RequestMapping("/apis" + FEIGN_VERSION + "/file")
public interface FileApi {

    @ApiOperation(value = "Excel上传")
    @PostMapping("/upload")
    CommonResult upload(@RequestParam("file") MultipartFile srcFile);

}
